package com.ce.util;

import com.ce.pms.common.vo.OrganizationalStructureVO;
import com.ce.webframework.sec.vo.SecUserinfoVO;



public class CurrentUserThread {

	/**
	 * 声明局部线程变量
	 */
	private static ThreadLocal<OrganizationalStructureVO> currentUser = new ThreadLocal<OrganizationalStructureVO>();

	/**
	 * 获取当前用户信息对象
	 * @return 当前用户信息对象
	 */
	public static OrganizationalStructureVO get() {

		return (OrganizationalStructureVO) currentUser.get();
	}

	/**
	 * 设置当前用户信息对象
	 * @param user  用户值对象
	 */
	public static void set(OrganizationalStructureVO loginUser) {

		currentUser.set(loginUser);
	}
}
